import { createApp } from 'vue'

import './index.scss';

import './favicon';
import './core/axios'

import Store from './store';

import Components from './components';

import router from './router'
import { RouterView } from 'vue-router';
const app = createApp(RouterView);

import Directives from './utils/directives';
Directives(app)

import ElementPlus from 'element-plus';
import locale from 'element-plus/lib/locale/lang/zh-cn'
app.use(ElementPlus, { locale, size: 'medium', zIndex: 3000 });

app.use(router)
.use(Store)
.use(Components)
.mount('#app');

// window.addEventListener('unhandledrejection', event => event.promise.catch(e => console.log(e) ) );
